INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../core)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../../components/graphics)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/core)

ADD_SUBDIRECTORY(core)
ADD_SUBDIRECTORY(plugins)
ADD_SUBDIRECTORY(data)

SET(sandbox_SOURCES aboutdialog.cpp projectwizard.cpp mainwindow.cpp main.cpp)
SET(sandbox_HEADERS aboutdialog.h projectwizard.h mainwindow.h)
SET(sandbox_FORMS mainwindow.ui aboutdialog.ui projectwizard.ui)

QT4_WRAP_CPP(sandbox_HEADERS_MOC ${sandbox_HEADERS})
QT4_WRAP_UI(sandbox_FORMS_H ${sandbox_FORMS})

ADD_EXECUTABLE(TrySandbox ${sandbox_SOURCES} ${sandbox_HEADERS_MOC} ${sandbox_FORMS_H})

TARGET_LINK_LIBRARIES(TrySandbox ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(TrySandbox TryCore)
TARGET_LINK_LIBRARIES(TrySandbox TryGraphics)
TARGET_LINK_LIBRARIES(TrySandbox TrySandboxCore)
